<template>
  <div id="app">
    <span @click="increment">1-{{ count }}-1</span>
  </div>
</template>

<script>
export default {
  name: 'App',
  computed: {
    count() {
      return this.$store.state.app.count
    }
  },
  methods: {
    increment() {
      this.$store.dispatch('app/increment')
    }
  }
}
</script>

<style>
</style>
